class ticketslistbean {
  int code;
  String message;
  List<ticketbean> result;
  bool success;
  var timestamp;

  ticketslistbean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  ticketslistbean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<ticketbean>();
      json['result'].forEach((v) {
        result.add(new ticketbean.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class ticketbean {
  var checkId;
  String clockInNumber;
  String clockTime;
  var id;
  var lat;
  var lon;

  ticketbean(
      {this.checkId,
        this.clockInNumber,
        this.clockTime,
        this.id,
        this.lat,
        this.lon});

  ticketbean.fromJson(Map<String, dynamic> json) {
    checkId = json['checkId'];
    clockInNumber = json['clockInNumber'];
    clockTime = json['clockTime'];
    id = json['id'];
    lat = json['lat'];
    lon = json['lon'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['checkId'] = this.checkId;
    data['clockInNumber'] = this.clockInNumber;
    data['clockTime'] = this.clockTime;
    data['id'] = this.id;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    return data;
  }
}
